package com.mianle.userapi.util;

import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.seg.common.Term;
import com.hankcs.hanlp.tokenizer.StandardTokenizer;

import java.util.List;

/**
 * @Author: yiyuan
 * @Description:
 * @Date: Created in 8:58 2018/5/29
 */
public class Hanlp {

    public static void main(String[] args) {
        String content = "我要唱歌";
        content = "";
        List<String> keywordList = HanLP.extractKeyword(content, 5);
        //System.out.println(keywordList);

        System.out.println(HanLP.segment("人力方网站正式上线"));

        List<Term> termList = StandardTokenizer.segment("人力方网站正式上线");
        System.out.println(termList);



    }
}
